package com.shenmazong.serverwebpoem.mapper;

import com.shenmazong.serverwebpoem.pojo.TbPoetry;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 田不平
 * @project server-web-poem
 * @date 2020/3/16 8:59 PM
 * http://www.shenmazong.com
 */
@Mapper
@Component(value = "iDbPoetryMapper")
public interface IDbPoetryMapper {

    //-- 诗词的增删改查
    TbPoetry getPoetryByTitle(@Param("title") String title);
    TbPoetry getPoetryById(@Param("id") Integer id);
    List<TbPoetry> getPoetry(TbPoetry poetry);
    void initPoetry(TbPoetry poetry);
    void addPoetry(TbPoetry poetry);
    void delPoetry(@Param("id") Integer id);
    void setPoetry(TbPoetry poetry);

    //-- 朝代的增删该查

}
